import 'entities/user_model.dart';

class UserManager{

    UserManager._();
    static UserManager get instance => _instance;
    static UserManager _instance = UserManager._();

    User? _user;

    void initUser(User user) {
        _user = user;
    }

    void clear() {
        _user = null;
    }

    bool get isLogin => _user != null;

    User get user => _user??User("");
}